package cn.iocoder.yudao.module.product.controller.admin.stockinfo.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 库存信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class StockInfoPageReqVO extends PageParam {

    @Schema(description = "0配送人 1 门店 2 气站 ", example = "2")
    private Integer ownerType;

    @Schema(description = "库存id", example = "21302")
    private Long ownerId;

    @Schema(description = "skuid", example = "11191")
    private Long skuId;

    @Schema(description = "spuid", example = "8535")
    private Long spuId;

    @Schema(description = "sku数量", example = "24437")
    private Integer skuCount;

    @Schema(description = "版本号，乐观锁使用")
    private Integer version;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "更新人")
    private String updater;

    @Schema(description = "包装物或商品: 0|1")
    private Integer productType;

    @Schema(description = "货品名称")
    private String spuName;
    @Schema(description = "货品类型名称")
    private String name;
}